<!DOCTYPE html>
<html lang="en" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>Index</title>
</head>
<body>
<h3>Hello
    <shiro:principal/>
</h3>
<h4><a href="/logout">注销登陆</a></h4>
<h4><a href="/admin" shiro:hasRole="admin">管理员页面</a></h4>
<h4><a href="/user" shiro:hasAnyRoles="admin,user">普通用户页面</a></h4>
</body>
</html>